<template>
  <div>
    <form @submit.prevent="beforeSubmit" method="post" class="theForm">
      <div class="stepsBox">
        <div id="stepOne"><img src="../../assets/images/step-one.png" alt="">
          <div class="iconBgBlue">
            <div class="iconWhite">1</div>
          </div>
          <span>司机信息</span>
        </div>
        <div id="stepTwo"><img src="../../assets/images/step-two-charged.png" alt="">
          <div class="iconBgBlue">
            <div class="iconWhite">2</div>
          </div>
          <span>车辆信息</span>
        </div>
        <div id="stepThree"><img src="../../assets/images/step-three-charged.png" alt="">
          <div class="iconBgBlue">
            <div class="iconWhite">3</div>
          </div>
          <span>等待审核</span>
        </div>
      </div>
      <div class="theBlock">
        <img src="../../assets/images/result-success.png" alt="">
        <p>
          提交成功
        </p>
        <span>
          请等待审核...
        </span>
      </div>
      <input type="submit" @click="windowClose()" value="完成">
    </form>
  </div>
</template>

<script>
export default {
  name: "UploadSuccess",
  data() {
    return {
    };
  },
  methods: {
    beforeSubmit() {
      window.close();
    },
    windowClose() {
      window.close();
    }
  }
};
</script>

<style scoped>
@import "../../assets/css/style.css";

input[type='submit'] {
  width: 50%;
}

.theForm {
  align-items: center;
  justify-items: center;
}

.stepsBox {
  display: flex;
  width: 100%;

  font-size: 14px;
}

#stepOne,
#stepTwo,
#stepThree {
  color: #ffffff;
}

.theBlock {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 70px;
  text-align: center;

  background-color: inherit;
}

.theBlock span {
  font-size: 12px;
  color: #999999;
}
</style>